package cn.iocoder.yudao.module.game.dal.mysql.gameOverview;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.game.dal.dataobject.gameOverview.GameOverviewDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.game.controller.admin.gameOverview.vo.*;

/**
 * 游戏概况 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface GameOverviewMapper extends BaseMapperX<GameOverviewDO> {

    default PageResult<GameOverviewDO> selectPage(GameOverviewPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<GameOverviewDO>()
                .betweenIfPresent(GameOverviewDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(GameOverviewDO::getId));
    }

}